//
//  LSZVariousRankingDataTableViewCell.m
//  PartyClassCloud
//
//  Created by 梁素珍 on 2018/9/2.
//  Copyright © 2018年 九酷. All rights reserved.
//

#import "LSZVariousRankingDataTableViewCell.h"

@implementation LSZVariousRankingDataTableViewCell

-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.labelNum = [[UILabel alloc]init];
        self.labelNum.frame = CGRectMake(0, 10, 60, 30);
        self.labelNum.textAlignment = NSTextAlignmentCenter;
        self.labelNum.textColor = lightColor;
        [self addSubview:self.labelNum];
        
        self.labelTitle = [[UILabel alloc]init];
        self.labelTitle.frame = CGRectMake(CGRectGetMaxX(self.labelNum.frame), 10, ScreenWidth-CGRectGetMaxX(self.labelNum.frame)-10, 30);
        self.labelTitle.textColor = titleColorLSZ;
        [self addSubview:self.labelTitle];
    }
    return self;
}
-(void)setMyPointsMg:(LSZMyPointsMg *)myPointsMg
{
    self.labelTitle.text = [NSString stringWithFormat:@"%@ %@分",myPointsMg.name,myPointsMg.score];
}
@end
